<?php

declare(strict_types=1);
/**
 * This file is part of habo_new_media.
 *
 * @link     https://www.berlen.cn/
 * @contact  tech@berlen.cn
 * @license  http://gitlab.rehou.cn/habo/habo_new_media/-/blob/master/README.md
 */
namespace app\enum;

class DingTalkUrlEnum extends UrlEnum
{
    /**
     * @var array|string[] 消息服务链接列表
     */
    public const MSG_URL = [
        // 根据手机号获取userid
        'user_mobile' => '/topapi/v2/user/getbymobile',
        // 发送钉钉互动卡片
        'send_cards_messages' => '/v1.0/im/v1.0/robot/interactiveCards/send',
    ];

    /**
     * @var array|string[] TOKEN服务链接列表
     */
    public const TOKEN_URL = [
        // 获取 access_token
        'get_access_token' => '/gettoken',
    ];

    public static string $serviceName = 'DD_BASE_URL';
    public static string $apiServiceName = 'DD_BASE_NEW_URL';
}
